/* 背景图 */
body {
    background-image: url("../打地鼠image/back.jpg");
    background-repeat: no-repeat;
    background-size: 100% 110%;
}

/* 最外层容器样式 */
#con{
    width: 1000px;
    height: 600px;
    margin: 50px auto;
    border-radius: 1vh;
    border: 10px solid #fecb6e;
    background-color:rgb(128, 77, 0);
}

/* 选项样式 */
#difficult {
    width: 50px;
    height: 30px;
    border-radius: 1vh;
}

#difficult:hover {
    box-shadow: black 3px 3px 5px;
}

/* 头部样式 */
#nav{
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: space-evenly;
    background-color: rgb(127, 255, 212);

}

#nav>span{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    background-color: rgb(127, 255, 212);
}
/* 核心内容样式 */
#mouseFrame{
    height: 70%;
    border: red solid 1px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    
    
}
#mouseFrame .mouse{
    width: 19%;
    position: relative;
    height: 49%;
    display: flex;
    border-radius: 3px;
    background-color: rgb(127, 255, 212);
}
/* 添加地鼠坑 */
#mouseFrame .mouse::after{
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100px;
    height: 30px;
    border-top: 10px solid brown;
    background-color: burlywood;
    border-radius: 50%;
    z-index:0;
}
/* 尾部样式 */
#end,#start{
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: black 3px 3px 3px;
    background-color: rgb(118, 255, 209);
    border-radius: 3px;
    border-bottom: 1px solid gray;
}



#end:hover,#start:hover{
    background-color: gray;
}

/* 地鼠图片 out是出现的图片 hit是被击打的图片 */
.out{
    background-image: url("../打地鼠image/out.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
    
    animation: back linear 0.3s;

}
.hit{
    background-image: url("../打地鼠image/hit.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
}
/* 地鼠出现动画 */
@keyframes back{
    0%{
        background-position: center bottom;
    }
    100%{
        background-position: center center;
    }
}

/* 美化弹窗样式 */
#cartain{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 40%;
    height: 40%;
    margin: auto;
    background-color: antiquewhite;
    z-index: 2;
    border-radius: 12px;
    border: 10px solid red;
    background-image: url("../打地鼠image/弹窗.webp");
    display: none;
}
#cartain h1{
    text-align: center;
    width: 100%;
    height: 30%;
    color: red;
}
#cartain .escape1{
    position: absolute;
    top: 5px;
    right: 50px;
    color: black;
    font-weight: 700;
    font-size: 60px;
    cursor: pointer;
}
#cartain .escape:hover{
    color: gray;
}
#cartain p{

    font-size: 35px;
   text-align: center;
    width: 100%;
    height: 50px;
    color:black;
}

.kong{
    width: 180px;
    
    height: 300px;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;    
}
.kong div{
    width: 90%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 10px skyblue solid;
    background-color: antiquewhite;
    border-radius: 12px;
}
.kong div a{
    text-decoration: none;
    color: black;
}
.kong div:hover{
    background-color: gray;
}


/* 地鼠王 */
#boss{
    width: 300px;
    height: 200px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: none;
}
#boss img{
    width: 100%;
    height: 100%;
    border-radius: 30px;
}
#boss p{
    position: absolute;
    margin: 0;
    opacity: 0;
    padding: 0;
    font-size: 40px;
    font-weight: 700;
    color: red;
    left: 40%;
    top: 50%;
}
.ani{
    animation: boss linear 0.05s;
}
.appearboss{
    animation: appear linear 2s;
}
@keyframes boss{
    0%{
        opacity: 1;
        top: 70%;
    }
    100%{
        opacity: 0;
        top: 50%;
    }
}
@keyframes appear{
    0%{
        opacity: 0;
        top: 0;
    }
    100%{
        opacity: 1;
        top: 50%;
    }
}

